<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/actions/qualitydepartmentemployee/QualityDepartmentEmployeeAction.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/actions/Response.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/model/Service/Service.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/model/Service/ServiceFactory.php';

final class ProcessListAction extends QualityDepartmentEmployeeAction {
	protected function execute(Response $response) {
		$serviceFactory = new ServiceFactory();
		$service = $serviceFactory->getService('ProcessService');
		$processes = $service->getAll();
		
		$serviceIndicator = $serviceFactoy->getService('IndicatorService');// Получаем нужный сервис
		foreach($processes as $process) {
			$serviceIndicator->getIndicatorsForProcess($process);
		}
		$response->setParameter('processes', $processes);
	}
}
?>